﻿using System.Collections.Generic;
using ZilLion.Service.Core.DapperWrapper;
using ZilLion.Service.ZilLionOss.Domain.Entitys;

namespace ZilLion.Service.ZilLionOss.Domain.Repositorys.Interface
{
    public interface IOssUserInfoRepository : IRespository
    {
        OssUserInfoEntity GetUserInfo(long userid);
        OssUserInfoEntity GetUserInfo(string username);
        void SaveUserInfo(OssUserInfoEntity entity, UnitOfWork unitOfWork = null);
        IEnumerable<OssUserInfoEntity> GetAllUsers();
        void DeleteUser(long userid, UnitOfWork unitOfWork = null);
    }
}